﻿#ifndef CREAL_TIME_DATA_WIDGET_H
#define CREAL_TIME_DATA_WIDGET_H
/********************************************************************************
** @ Date:2024/02/29
** @ Author: HanJiaXin
** @ Description:机器人实时数据监控控件
** @ Version:1.0.0
** @ ClassName:CRealTimeDataWidget
** @ Fun:
********************************************************************************/
#include <QWidget>
#include <QTimer>
#include "ui_CRealTimeDataWidget.h"
#include "CDevBase.h"

class CRealTimeDataWidget : public QWidget
{
	Q_OBJECT

public:
	CRealTimeDataWidget(CDevBase* pIFDev,QWidget *parent = nullptr);
	~CRealTimeDataWidget();
	QTimer* m_pTimer;
	//设置界面中显示的内容及状态
	void setState(bool bConnectState, float fSpeed, float fAccumulatMileage, float fBatteryVol, float fTempDj, float fDriveMoment, float fTemp,
		float fCo, float fPm25, float fLocation, float fLocationZ, float fBatteryCurrent,
		float fTempDc, float fLiftMoment, float fHum, float fGas, float fPm10);

private:
	void setStyleSheetFile();	//设置界面样式表

public slots:
	void slotDataRefresh();//定时器刷新

private:
	Ui::CRealTimeDataWidgetClass ui;
	CDevBase* m_pDev;	
};

#endif // 
